<template>
    <div class="setting">
        <c-header title="设置" leftType="menu"></c-header>
        <section class="body">
            <ul class="list">
                <li>没有更多的选项</li>
                <li @click="logout">
                    <i class="fa fa-sign-in" aria-hidden="true"></i> 退出登录
                </li>
            </ul>
        </section>
    </div>
</template>
<script>
import * as API from '../api'
import permissions from '@/common/permissions';
import cHeader from './Header'

export default {
    name: 'setting',
    data() {
        return {
            btnLoading: false,
            password: '0d45c0d3-697f-45a5-b093-edfb48ec7fb7',
        }
    },
    components: {
        cHeader
    },
    created() {
        var tthis = this;
    },
    activated() {},
    methods: {

        logout() {
            if (confirm('确定退出登录?')) {
                Util.clearAllStroage();
                this.$router.push({
                    name: 'login'
                })
            } else {
                console.log('n')
            }
        }

    }
}

</script>
<style lang="less" scoped>
.body {
    /*padding: 0 20px;*/
    // background: #f1f1f1;
}

.list li {
    padding: 0 20px;
    border-bottom: 1px solid #f3f3f3;
    height: 40px;
    line-height: 40px;
}

</style>
